import { onMounted, ref } from 'vue'
export default function(){
  let loginCode = ref('')
  async function getkey(){
    const res = await getKey()
    // console.log(res.data.data.unikey)
    const key = res.data.data.unikey
    // console.log(key)
    const res1 = await getQrcode(key)
    console.log(res1.data.data.qrimg)
    loginCode.value = res1.data.data.qrimg
  }
  // getkey()
  return{
    // loginCode,
    getkey
  }
}